 <!doctype html>
 <html lang="zh-CN">
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="__PUBLIC__/css/common.css">
   <link rel="stylesheet" href="__PUBLIC__/css/main.css">
   <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
   <script type="text/javascript" src="__PUBLIC__/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
      }); 
      function cancleStore(url, obj){
    	   if (confirm("您确定解除绑定该店铺吗？")) {
			   window.location = url;
		   } 
      }
   		function bangStoreByStoreId(url, obj) {
		   if (confirm("您确定要绑定该店铺吗？")) {
			   window.location = url;
		   } 
 	}
    
   </script>
   <title>Document</title>
 </head>
 <body>
  <div class="container">
    <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">绑定的饭店</b></div>
            <div class="box_center">
             <div id="table" class="mt10">
        <div class="box span10 oh">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="5%">序号</th>
                   <th width="15%">名称</th>
                   <th width="15%">操作</th>
                    </tr>
               <foreach name="bangStoreList" item="store">
                <tr class="tr">
                	<td class="td_center">{{$key+1}}</td>
                   	<td>{{$store.name}}</td>
                   	  <td>
               	 <input type="button" class="ext_btn ext_btn_success" value="解除绑定" onclick="javascript:cancleStore('{{:U('Index/cancleStoreByStoreIdAndWbarId')}}?store_id={{$store.store_id}}&&wbar_id={{$wbar.id}}', this);">
              </td>
                </tr>
              </foreach>
              </table>
              </div>
              <div style="height: 30px;border-bottom: 2px;border-color: black;"></div>
              <hr/>
               <div class="box_top"><b class="pl15">饭店列表</b></div>
                <div class="box_center">
             <div id="table" class="mt10">
        <div class="box span10 oh">
                         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="5%">序号</th>
                   <th width="15%">名称</th>
                   <th width="15%">操作</th>
                    </tr>
               <foreach name="storeList" item="store">
                <tr class="tr">
                	<td class="td_center">{{$key+1}}</td>
                   	<td>{{$store.name}}</td>
                   	<td>
                   	 <input type="button" class="ext_btn ext_btn_success" value="绑定" onclick="javascript:bangStoreByStoreId('{{:U('Index/bangStoreByStoreIdAndWbarId')}}?store_id={{$store.id}}&&wbar_id={{$wbar.id}}', this);">
                   	</td>
                </tr>
              </foreach>
              </table>
           </div>
           </div>
           </div>
           
            </div>
          </div>
        </div>
     </div>
   </div> 
  
   </div> 
 </body>
 </html>
  